﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace BbzaApi.Core
{
    /// <summary>
    /// Represents availability information given by a provider
    /// </summary>
    [XmlType("provider")]
    public class ProviderAvailability
    {
        /// <summary>
        /// Gets a value indicating the name of the provider
        /// </summary>
        [XmlElement("name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets a value indicating the max speed provided by this 
        /// </summary>
        [XmlElement("maxspeed")]
        public int MaxSpeed { get; set; }

        /// <summary>
        /// Gets a value indicating if this exchange supports the Self-Install option.
        /// </summary>
        [XmlElement("sio")]
        public bool SelfInstallOption { get; set; }

        /// <summary>
        /// Gets a value indicating the date ADSL was marked as enabled.
        /// </summary>
        /// <remarks>
        /// Dates pre-2011-04-28 are not indicative of enablement date. 
        /// These dates come from the old Telkom exchange checker.
        /// </remarks>
        [XmlElement("enabled_adsl")]
        public string AdslEnablement { get; set; }

        /// <summary>
        /// Gets a value indicating the date 10Mbps was marked as enabled.
        /// </summary>
        /// <remarks>
        /// Dates pre-2011-04-28 are not indicative of enablement date. 
        /// These dates come from the old Telkom exchange checker.
        /// </remarks>
        [XmlElement("enabled_10mbps")]
        public string AdslEnablement10Mbps { get; set; }
    }
}
